package com.gigmissions.server.dao;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Gig {
	
	 	@PrimaryKey
	    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	    private Long id;

	    @Persistent
	    private User author;

	    @Persistent
	    private String description;

	    @Persistent
	    private Date date;

	    @Persistent
	    private String address;
	    
	    @Persistent
	    private String title;
	    
	    @Persistent
	    private String lat;

	    @Persistent
	    private String lng;
	    
	    public Gig(String title, User author, String description, Date date,String address, String lat, String lng) {
	        this.author = author;
	        this.address = address;
	        this.description = description;
	        this.date = date;
	        this.title = title;
	        this.lat = lat;
	        this.lng = lng;
	    }

	    public Long getId() {
	        return id;
	    }
	    

		public String getLat() {
			return lat;
		}

		public void setLat(String lat) {
			this.lat = lat;
		}

		public String getLng() {
			return lng;
		}

		public void setLng(String lng) {
			this.lng = lng;
		}

		public User getAuthor() {
			return author;
		}

		public void setAuthor(User author) {
			this.author = author;
		}

		public String getDescription() {
			return description;
		}

		public void setDescription(String description) {
			this.description = description;
		}

		public Date getDate() {
			return date;
		}

		public void setDate(Date date) {
			this.date = date;
		}

		public String getAddress() {
			return address;
		}

		public void setAddress(String address) {
			this.address = address;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

	  

}
